<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let books = [];
        books[0] = "《javascript前端开发案例教程》";
        books[1] = "《Node.js 核心基础教程》";
        books[2] = '《HTML5移动web开发》';
        for(let k in books){
            console.log(k+" " + books[k]);
        }
    </script>
</body>
</html>